package com.ruoyi.cat.service.impl;

import java.util.List;

import com.ruoyi.cat.domain.CatBaseintroduceTable;
import com.ruoyi.cat.mapper.CatBaseintroduceTableMapper;
import com.ruoyi.cat.service.ICatBaseintroduceTableService;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 基础信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-27
 */
@Service
public class CatBaseintroduceTableServiceImpl implements ICatBaseintroduceTableService
{
    @Autowired
    private CatBaseintroduceTableMapper catBaseintroduceTableMapper;

    /**
     * 查询基础信息
     * 
     * @param id 基础信息主键
     * @return 基础信息
     */
    @Override
    public CatBaseintroduceTable selectCatBaseintroduceTableById(Long id)
    {
        return catBaseintroduceTableMapper.selectCatBaseintroduceTableById(id);
    }

    /**
     * 查询基础信息列表
     * 
     * @param catBaseintroduceTable 基础信息
     * @return 基础信息
     */
    @Override
    public List<CatBaseintroduceTable> selectCatBaseintroduceTableList(CatBaseintroduceTable catBaseintroduceTable)
    {
        return catBaseintroduceTableMapper.selectCatBaseintroduceTableList(catBaseintroduceTable);
    }

    /**
     * 新增基础信息
     * 
     * @param catBaseintroduceTable 基础信息
     * @return 结果
     */
    @Override
    public int insertCatBaseintroduceTable(CatBaseintroduceTable catBaseintroduceTable)
    {
        catBaseintroduceTable.setCreateTime(DateUtils.getNowDate());
        return catBaseintroduceTableMapper.insertCatBaseintroduceTable(catBaseintroduceTable);
    }

    /**
     * 修改基础信息
     * 
     * @param catBaseintroduceTable 基础信息
     * @return 结果
     */
    @Override
    public int updateCatBaseintroduceTable(CatBaseintroduceTable catBaseintroduceTable)
    {
        return catBaseintroduceTableMapper.updateCatBaseintroduceTable(catBaseintroduceTable);
    }

    /**
     * 批量删除基础信息
     * 
     * @param ids 需要删除的基础信息主键
     * @return 结果
     */
    @Override
    public int deleteCatBaseintroduceTableByIds(Long[] ids)
    {
        return catBaseintroduceTableMapper.deleteCatBaseintroduceTableByIds(ids);
    }

    /**
     * 删除基础信息信息
     * 
     * @param id 基础信息主键
     * @return 结果
     */
    @Override
    public int deleteCatBaseintroduceTableById(Long id)
    {
        return catBaseintroduceTableMapper.deleteCatBaseintroduceTableById(id);
    }
}
